/**
 * 
 */
package com.songtai.dao;

import com.songtai.po.Administrator;

/**
 * @author zzy
 * @category 管理员操作DAO
 * 
 */
public interface AdminDao {
	/**
	 * 获取管理员对象
	 * 
	 * @return
	 * @param username
	 * @throws Exception
	 */
	public Administrator getAdministratorByName(String username) throws Exception;

	/**
	 * 更新管理员信息
	 * 
	 * @param administrator
	 * @throws Exception
	 */
	public void updateAdministrator(Administrator administrator) throws Exception;

	/**
	 * 增加管理员
	 * 
	 * @param administrator
	 * @throws Exception
	 */
	public void addAdministrator(Administrator administrator) throws Exception;
}
